var elderFamilyMember = {
	elderFamilyMemberId: '',
	elderId: '',
	name: '',
	sex: '',
	birthday: '',
	cardId: '',
	relationship: '',
	workUnits: '',
	unitsAddress: '',
	liveAddress: '',
	phoneNumber: '',
	email: '',
	createTime: '',
	updateTime: '',
	createId: getLoginedUser()? getLoginedUser().staffId: '',
	updateId: getLoginedUser()? getLoginedUser().staffId: '',
	remark: '',
};

var elderFamilyMemberView = {
	data: elderFamilyMember
};

var elderFamilyMember_vue_vm = new Vue({
	el: '#elderFamilyMember_vue_vm',
	data: elderFamilyMemberView
});

function save() {
	elderFamilyMemberView.data.birthday = elderFamilyMemberView.data.year + '-' + elderFamilyMemberView.data.month + '-' + elderFamilyMemberView.data.day;
	elderFamilyMemberView.data.sex = (elderFamilyMemberView.data.sex==''? 0: parseInt(elderFamilyMemberView.data.sex));

	save_basic(path+'/elderFamilyMember/save', {elderFamilyMember:elderFamilyMemberView.data}, function() {
		alert('保存成功');
	});
}

function deleteBatch() {
	deleteBatch_basic(path+'/elderFamilyMember/deleteBatch');
}
